<html>
<head><meta charset="utf-8"><title>updating libz-sys · t-infra · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/index.html">t-infra</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/updating.20libz-sys.html">updating libz-sys</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="210433420"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/updating%20libz-sys/near/210433420" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/updating.20libz-sys.html#210433420">(Sep 17 2020 at 18:51)</a>:</h4>
<p>Any objections to upgrading libz-sys from v1.0.27 -&gt; v1.1.2 in rust-lang/rust? The version right now fails with newer C compilers on macOS:</p>
<div class="codehilite"><pre><span></span><code>2020-09-17T03:36:43.5110600Z warning: src/zlib/gzlib.c:214:15: error: implicitly declaring library function &#39;snprintf&#39; with type &#39;int (char *, unsigned long, const char *, ...)&#39; [-Werror,-Wimplicit-function-declaration]
2020-09-17T03:36:43.5111770Z warning:         (void)snprintf(state-&gt;path, len + 1, &quot;%s&quot;, (const char *)path);
2020-09-17T03:36:43.5112680Z warning:               ^
2020-09-17T03:36:43.5113640Z warning: src/zlib/gzlib.c:214:15: note: include the header &lt;stdio.h&gt; or explicitly provide a declaration for &#39;snprintf&#39;
2020-09-17T03:36:43.5114530Z warning: 1 error generated.
2020-09-17T03:36:43.5115720Z warning: src/zlib/gzwrite.c:428:11: error: implicitly declaring library function &#39;vsnprintf&#39; with type &#39;int (char *, unsigned long, const char *, __builtin_va_list)&#39; [-Werror,-Wimplicit-function-declaration
]
2020-09-17T03:36:43.5117000Z warning:     len = vsnprintf(next, state-&gt;size, format, va);
2020-09-17T03:36:43.5117750Z warning:           ^
2020-09-17T03:36:43.5118800Z warning: src/zlib/gzwrite.c:428:11: note: include the header &lt;stdio.h&gt; or explicitly provide a declaration for &#39;vsnprintf&#39;
2020-09-17T03:36:43.5119750Z warning: 1 error generated.
</code></pre></div>


<p>/cc <span class="user-mention" data-user-id="239881">@Josh Triplett</span></p>



<a name="210433471"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/updating%20libz-sys/near/210433471" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/updating.20libz-sys.html#210433471">(Sep 17 2020 at 18:51)</a>:</h4>
<p>I <em>assume</em>, but have not tested, that 1.1.2 has fixed this warning/error.</p>



<a name="210433743"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/updating%20libz-sys/near/210433743" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Triplett <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/updating.20libz-sys.html#210433743">(Sep 17 2020 at 18:53)</a>:</h4>
<p><span class="user-mention" data-user-id="116155">@Jake Goulding</span> Far from objecting, big <span aria-label="+1" class="emoji emoji-1f44d" role="img" title="+1">:+1:</span> to upgrading. :)</p>



<a name="210433769"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/updating%20libz-sys/near/210433769" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Triplett <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/updating.20libz-sys.html#210433769">(Sep 17 2020 at 18:53)</a>:</h4>
<p>And yes, I fixed that.</p>



<a name="210433901"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/updating%20libz-sys/near/210433901" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Triplett <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/updating.20libz-sys.html#210433901">(Sep 17 2020 at 18:54)</a>:</h4>
<p>Also, one of these days I would like us to figure out how to use zlib-ng in rust-lang/rust official binaries, without disrupting Linux distributions that want to use system zlib.</p>



<a name="210441508"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/updating%20libz-sys/near/210441508" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/updating.20libz-sys.html#210441508">(Sep 17 2020 at 19:49)</a>:</h4>
<p>Makes me wonder what regularly doing <code>cargo update</code> would be like.</p>



<a name="210442652"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/updating%20libz-sys/near/210442652" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/updating.20libz-sys.html#210442652">(Sep 17 2020 at 19:58)</a>:</h4>
<p>/me has an outstanding conversation about that to have with T-compiler folks</p>



<a name="210466825"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/updating%20libz-sys/near/210466825" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/updating.20libz-sys.html#210466825">(Sep 18 2020 at 00:16)</a>:</h4>
<p><span class="user-mention" data-user-id="116122">@simulacrum</span> I think <em>all</em> of your conversations are outstanding <span aria-label="innocent" class="emoji emoji-1f607" role="img" title="innocent">:innocent:</span></p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>